import request from "@/config/axios/service";

export function getlabelsList(params) {
  return request({
    url: "/LabelSpec/GetPageList",
    method: "get",
    params,
  });
}
export function postLabelList(url, params) {
  return request({
    url: url,
    method: "get",
    params,
  });
}

export function deletelabelsList(data) {
  return request({
    url: "/LabelSpec/Delete",
    method: "delete",
    data,
  });
}
export function deletelabelsListByName(code, data) {
  return request({
    url: "/LabelSpec/DeleteLabel?labelSpecCode=" + code,
    method: "delete",
    data,
  });
}
export function uploadImg(Code, data) {
  return request({
    url: "/LabelSpec/UploadLabelTemplate?labelSpecCode=" + Code,
    method: "post",
    headers: { "Content-Type": "multipart/form-data" },
    data,
  });
}
export function getLabelParams(params) {
  return request({
    url: "/LabelSpec/GetLabelTemplateDesitionAsync",
    method: "get",
    params,
  });
}
